/* 学生设置页面样式 */
.student-settings {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.settings-content {
    display: grid;
    gap: 30px;
}

.settings-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.settings-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* 设置项样式 */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: #f8f9fa;
    margin: 0 -20px;
    padding: 20px;
    border-radius: 8px;
}

.setting-label {
    font-weight: 600;
    color: #555;
    font-size: 1rem;
    flex: 1;
}

.setting-select,
.setting-input {
    padding: 10px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    min-width: 150px;
}

.setting-select:focus,
.setting-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.setting-select {
    cursor: pointer;
}

.setting-input[type="password"] {
    font-family: monospace;
    letter-spacing: 2px;
}

/* 特殊设置项样式 */
.setting-item.password-group {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.setting-item.password-group .setting-label {
    margin-bottom: 5px;
}

.setting-item.password-group .setting-input {
    width: 100%;
}

/* 开关样式 */
.setting-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #e1e5e9;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-toggle.active {
    background: #667eea;
}

.setting-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.setting-toggle.active::after {
    transform: translateX(24px);
}

/* 操作按钮 */
.settings-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.save-btn,
.reset-btn {
    padding: 14px 36px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.save-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.save-btn:hover::before {
    left: 100%;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.reset-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.reset-btn:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-2px);
    border-color: #667eea;
}

/* 设置项图标 */
.setting-item {
    position: relative;
}

.setting-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.setting-item:hover::before {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .student-settings {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 2rem;
    }

    .setting-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .setting-label {
        margin-bottom: 5px;
    }

    .setting-select,
    .setting-input {
        width: 100%;
        min-width: auto;
    }

    .settings-actions {
        flex-direction: column;
        align-items: center;
    }

    .save-btn,
    .reset-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .settings-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .setting-item {
        padding: 15px 0;
    }

    .setting-item:hover {
        margin: 0 -10px;
        padding: 15px 10px;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-section {
    animation: slideIn 0.5s ease forwards;
}

.settings-section:nth-child(1) {
    animation-delay: 0.1s;
}

.settings-section:nth-child(2) {
    animation-delay: 0.2s;
}

.settings-section:nth-child(3) {
    animation-delay: 0.3s;
}

.settings-section:nth-child(4) {
    animation-delay: 0.4s;
}

.settings-section:nth-child(5) {
    animation-delay: 0.5s;
}